Page({
  onShareAppMessage() {
    return {
      title: 'selection',
      path: 'packageComponent/pages/content/selection/selection'
    }
  },

  data: {
    schema: [{
      label:'携带值',
      prop:'value',
      type:'text'
    },{
      label:'是否禁用',
      prop:'disabled',
      type:'switch'
    },{
      label:'是否选中',
      prop:'checked',
      type:'switch'
    },{
      label:'颜色',
      prop:'color',
      type:'text'
    }],
    formData: {
      value:'0',
      disabled:false,
      checked:false,
      color:'#09BB07'
    },
    title: '',
    result: '',
    zh:'',
    apiType: '',
    remark: '',
    webUrl: '',
    apiName: '',
  },
  onLoad(options) {
    this.setData({
      apiType: options.zh,
      title: options.title,
      zh: options.zh,
      remark: options.remark,
      webUrl: options.webUrl
    })
  },
  getFormData(e){
    this.setData({
      formData:e.detail.formData
    })
  }
})
